<form class="form-horizontal" id="attributes_on_group" method="post" action="<?=base_url('group_attributes/reorder_group_attributes')?>" name="attributes_on_group">

    <input type="hidden" name="group_id" value="<?=$group_id?>">

    <fieldset>

        <?=info("To delete attributes, click on the delete icon in it's row. To reorder attributes, drag & drop them in the table.")?> 

        <table class="table table-striped table-bordered table-condensed"  id="sortable">
            <thead>
                <tr>
                    <th class="th-code">Attribute Code</th>
                    <th>Attribute Name</th>
                    <th class="th-action center">Action</th>
                </tr> 
            </thead>
            <tbody class="sort_content">

                <?  foreach($group_attributes as $group_attribute): ?> 

                    <tr>

                        <td><?=$group_attribute['attribute_ID']?></td>
                        <td><?=$this->translate->getArray($group_attribute['attribute_name'],TRUE);?></td>
                        <td class="center">
                            <input type="hidden" name="order_<?=$group_attribute['attribute_ID']?>" value="order_<?=$group_attribute['attribute_ID']?>">
                            <a href="javascript:" class="move_post"><img src="<?=base_url()?>assets/img/move.png" /> </a>
                            <? if($group_attribute['attribute_custom']==1): ?>
                                <a href="javascript:" class="delete_group_attribute" data-holder="<?=$group_id.'_'.$group_attribute['attribute_ID']?>">Delete</a>
                                <? endif; ?>
                        </td> 

                    </tr>                                      

                    <? endforeach; ?>

            </tbody>
        </table>

    </fieldset>

</form>